namespace DingHeng.TransportationManagement.Entity
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("VehicleDispatchForm")]
    public partial class VehicleDispatchForm
    {
        public VehicleDispatchForm()
        {
            TransportationForms = new HashSet<TransportationForm>();
            TransportationLogs = new HashSet<TransportationLog>();
        }

        public Guid ID { get; set; }

        [StringLength(128)]
        public string ProjectName { get; set; }

        [StringLength(32)]
        public string Code { get; set; }

        public DateTime? DispatchTime { get; set; }

        public Guid? VehicleID { get; set; }

        public Guid? PrincipalID { get; set; }

        [StringLength(32)]
        public string ContactNo { get; set; }

        [StringLength(8)]
        public string Driver { get; set; }

        [StringLength(16)]
        public string DriverContactNo { get; set; }

        [StringLength(16)]
        public string VehicleOwnerContactNo { get; set; }

        [StringLength(8)]
        public string CreateBy { get; set; }

        public DateTime? CreateDate { get; set; }

        [StringLength(8)]
        public string UpdateBy { get; set; }

        public DateTime? UpdateDate { get; set; }

        public bool? IsActive { get; set; }

        public Guid? Status { get; set; }

        public virtual ICollection<TransportationForm> TransportationForms { get; set; }

        public virtual ICollection<TransportationLog> TransportationLogs { get; set; }

        public virtual Vehicle Vehicle { get; set; }
    }
}
